/**
 * Download music
 */
var download = {
	
	showButton : function(key) {
		$("#vid" + key + "-download-button").show();
	},
	
	hideButton : function(key) {
		$("#vid" + key + "-download-button").hide();
	},
	
	download : function(key) {
		var url = '/download/?' + player[key].video.id;
		//window.open(url, 'vdjo-download', 'width=450,height=200');
		$("#download").attr("src", url);		
	}
		
}
